RecordSource = "SELECT * FROM Publishers ORDER BY Name"
Caption = "Adodc1"
BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "MS Sans Serif"
Size = 8.25
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
_Version = 393216
End
Begin VB.TextBox txtInput
DataField = "Comments"
DataSource = "datPublishers"
Height = 285
Index = 9
Left = 1320
Locked = -1 'True
TabIndex = 9
Text = "Text1"
Top = 3360
Width = 3255
End
Begin VB.TextBox txtInput
DataField = "Fax"
DataSource = "datPublishers"
Height = 285
Index = 8
Left = 1320
Locked = -1 'True
TabIndex = 8
Text = "Text1"
Top = 3000
Width = 1575
End
Begin VB.TextBox txtInput
DataField = "Telephone"
DataSource = "datPublishers"
Height = 285
Index = 7
Left = 1320
Locked = -1 'True
TabIndex = 7
Text = "Text1"
Top = 2640
Width = 1575
End
Begin VB.TextBox txtInput
DataField = "Zip"
DataSource = "datPublishers"
Height = 285
Index = 6
Left = 1320
Locked = -1 'True
TabIndex = 6
Text = "Text1"
Top = 2280
Width = 1575
End
Begin VB.TextBox txtInput
DataField = "State"
DataSource = "datPublishers"
Height = 285
Index = 5
Left = 1320
Locked = -1 'True
TabIndex = 5
Text = "Text1"
Top = 1920
Width = 1575
End
Begin VB.TextBox txtInput
DataField = "City"
DataSource = "datPublishers"
Height = 285
Index = 4
Left = 1320
Locked = -1 'True
TabIndex = 4
Text = "Text1"
Top = 1560
Width = 3255
End
Begin VB.TextBox txtInput
DataField = "Address"
DataSource = "datPublishers"
Height = 285
Index = 3
Left = 1320
Locked = -1 'True
TabIndex = 3
Text = "Text1"
Top = 1200
Width = 3255
End
Begin VB.TextBox txtInput
DataField = "Company Name"
DataSource = "datPublishers"
Height = 285
Index = 2
Left = 1320
Locked = -1 'True
TabIndex = 2
Text = "Text1"
Top = 840
Width = 3255
End
Begin VB.TextBox txtInput
DataField = "Name"
DataSource = "datPublishers"
Height = 285
Index = 1
Left = 1320
Locked = -1 'True
TabIndex = 1
Text = "Text1"
Top = 480
Width = 3255
End
Begin VB.CommandButton cmdHelp
Caption = "&Help"
Height = 375
Left = 3240
TabIndex = 19
TabStop = 0 'False
Top = 5160
Width = 1215
End
Begin VB.CommandButton cmdDone
Caption = "Do&ne"
Height = 375
Left = 3240
TabIndex = 18
TabStop = 0 'False
Top = 4680
Width = 1215
End
Begin VB.CommandButton cmdDelete
Caption = "&Delete"
Height = 375
Left = 1680
TabIndex = 17
TabStop = 0 'False
Top = 4680
Width = 1215
End
Begin VB.CommandButton cmdEdit
Caption = "&Edit"
Height = 375
Left = 120
TabIndex = 16
TabStop = 0 'False
Top = 4200
Width = 1215
End
Begin VB.CommandButton cmdCancel
Caption = "&Cancel"
Height = 375
Left = 3240
TabIndex = 15
TabStop = 0 'False
Top = 4200
Width = 1215
End
Begin VB.CommandButton cmdSave
Caption = "&Save"
Height = 375
Left = 1680
TabIndex = 14
TabStop = 0 'False
Top = 4200
Width = 1215
End
Begin VB.CommandButton cmdAddNew
Caption = "&Add New"
Height = 375
Left = 120
TabIndex = 13
TabStop = 0 'False
Top = 4680
Width = 1215
End
Begin VB.CommandButton cmdNext
Caption = "Next =>"
Height = 255
Left = 2520
TabIndex = 12
TabStop = 0 'False
Top = 3840
Width = 1215
End
Begin VB.CommandButton cmdPrevious
Caption = "<= Previous"
Height = 255
Left = 1080
TabIndex = 11
TabStop = 0 'False
Top = 3840
Width = 1215
End
Begin VB.TextBox txtInput
DataField = "PubID"
DataSource = "datPublishers"
Height = 285
Index = 0
Left = 1320
Locked = -1 'True
TabIndex = 10
TabStop = 0 'False
Text = "Text1"
Top = 120
Width = 1215
End
Begin VB.Label Label1
Caption = "Comments"
Height = 255
Index = 9
Left = 120
TabIndex = 28
Top = 3360
Width = 1215
End
Begin VB.Label Label1
Caption = "FAX"
Height = 255
Index = 8
Left = 120
TabIndex = 27
Top = 3000
Width = 1215
End
Begin VB.Label Label1
Caption = "Telephone"
Height = 255
Index = 7
Left = 120
TabIndex = 26
Top = 2640
Width = 1215
End
Begin VB.Label Label1
Caption = "Zip"
Height = 255
Index = 6
Left = 120
TabIndex = 25
Top = 2280
Width = 1215
End
Begin VB.Label Label1
Caption = "State"
Height = 255
Index = 5
Left = 120
TabIndex = 24
Top = 1920
Width = 1215
End
Begin VB.Label Label1
Caption = "City"
Height = 255
Index = 4
Left = 120
TabIndex = 23
Top = 1560
Width = 1215
End
Begin VB.Label Label1
Caption = "Address"
Height = 255
Index = 3
Left = 120
TabIndex = 22
Top = 1200
Width = 1215
End
Begin VB.Label Label1
Caption = "Company Name"
Height = 255
Index = 2
Left = 120
TabIndex = 21
Top = 840
Width = 1215
End
Begin VB.Label Label1
Caption = "Name"
Height = 255
Index = 1
Left = 120
TabIndex = 20
Top = 480
Width = 1215
End
Begin VB.Label Label1
Caption = "Publisher ID"
Height = 255
Index = 0
Left = 120
TabIndex = 0
Top = 120
Width = 1215
End
Attribute VB_Name = "frmPublishers"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit
Private Declare Function WinHelp Lib "user32" Alias "WinHelpA" (ByVal hwnd As Long, ByVal lpHelpFile As String, ByVal wCommand As Long, ByVal dwData As Long) As Long
Private Const HELP_FINDER = &HB&
Private Sub ValidateData(AllOK As Boolean)
Dim Message As String
AllOK = True
'Check for name
If Len(txtInput(1).Text) = 0 Then
Message = "You must enter a Publisher Name." & vbCrLf & Message